<template>
	<div class="admin">
		<el-container>
			<el-container>
				<el-header>
					<h3>Happy New Year <i class="iconfont">&#xec43;</i>-导航栏<a style="margin-left:70% ;color: gold;" href="#" @click="this.$router.push('/')">退出</a></h3>
				</el-header>
				<el-container>
					<el-aside class="left">
						<h4>新春管理菜单 <i class="iconfont">&#xec4a;</i></h4>
						<el-menu :router="true">
							<el-menu-item index="/admin/typecon">类型管理<i class="iconfont">&#xec41;</i></el-menu-item>
							<el-menu-item index="/admin/bookscon">书本管理<i class="iconfont">&#xec41;</i></el-menu-item>
							<el-menu-item index="/admin/hotcon">热点管理<i class="iconfont">&#xec41;</i></el-menu-item>
						</el-menu>
					</el-aside> 
					<el-main>
						<router-view></router-view>
					</el-main>
				</el-container>
			</el-container>
		</el-container>
	</div>

</template>

<script>
	export default {
		name: 'Main'
	}
</script>

<style scoped>
	.el-menu{
		margin-top: 50px;
	}
	.el-header{
		width: 100%;
		background-color: white;
		z-index: 999;
		position: fixed;
	}
	a {
		text-decoration: none;
		color: black;
	}

	.admin {
		width: 90%;
		margin: auto;
	}

	.admin h3 {
		color: #FF0000;
		border-bottom: 2px solid gold;
		height: 50px;
		line-height: 50px;
		text-indent: 1em;
		font-size: 23px;
		font-weight: bold;
	}

	.left {
		margin-top: 20px;
		float: left;
		height: 500px;
		width: 29%;
	}

	.left i {
		color: red;
	}

	.left h4 {
		font-size: 20px;
		color: gold;
		font-weight: bold;
	}

	.left ul {
		margin-top: 10px;
	}

	.left ul li {
		height: 100px;
		text-indent: 2em;
		line-height: 100px;
		border-bottom: 1px dashed red;
	}

	.left ul li:hover {
		cursor: pointer;
	}

	.main {
		margin-top: 20px;
		float: left;
		width: 67%;
		height: 500px;
		margin-left: 50px;
		/* background-color: #42B983; */
	}
</style>
